package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    void reminder(Long id);
    void repetition(Long id);
    PageResult listCurrUser(OrdersPageQueryDTO ordersPageQueryDTO);
    void cancel(Long id);

    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;
    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    void cancel(OrdersCancelDTO ordersCancelDTO);
    OrderStatisticsVO getOrderStatistics();
    void complete(Long id);
    void rejection(OrdersRejectionDTO ordersRejectionDTO);
    void confirm(Long id);
    OrderVO getById(Long id);
    void delivery(Long id);
    PageResult list(OrdersPageQueryDTO ordersPageQueryDTO);
}
